package com.ruoyi;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

/**
 * 启动程序
 * 
 * @author ruoyi
 */
// 为了让ruoyi-admin知道要加载rfg的模块，这些修改是必要的
// 参考: https://gitee.com/y_project/RuoYi-Vue/issues/I4Q9E3
@ComponentScans({
        // 没有外层的s，会把原有的模块顶掉
        @ComponentScan("com.tianq.home.**"),
})
@MapperScans({
//        @MapperScan("com.ruoyi.**.mapper"),
        // 除此之外，您还需要在application.yml中配置类型别名
        // 参考: https://blog.csdn.net/weixin_44679078/article/details/103752173
        @MapperScan("com.tianq.home.mapper")
})
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(RuoYiApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  若依启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " .-------.       ____     __        \n" +
                " |  _ _   \\      \\   \\   /  /    \n" +
                " | ( ' )  |       \\  _. /  '       \n" +
                " |(_ o _) /        _( )_ .'         \n" +
                " | (_,_).' __  ___(_ o _)'          \n" +
                " |  |\\ \\  |  ||   |(_,_)'         \n" +
                " |  | \\ `'   /|   `-'  /           \n" +
                " |  |  \\    /  \\      /           \n" +
                " ''-'   `'-'    `-..-'              ");
    }
}
